package com.demo.function.excel.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.demo.function.excel.easyexcel.pojo.ExtraInfo;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Data
public class User extends ExtraInfo {

    @ExcelProperty(value = "姓名")
    private String name;

    @Min(value = 10, message = "年龄太小")
    @ExcelProperty(value = "年龄")
    private int age;
}
